<!DOCTYPE html>
<html lang="zh">
	<head>
    	<meta charset="UTF-8" />
		<title>{$meta_title}</title> 
	    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
        <link href='__CSS__/google.css' rel='stylesheet' type='text/css'>
		<link href="__PUBLIC__/Green/images/logo.ico" type="image/x-icon" rel="shortcut icon">
		<link rel="apple-touch-icon" href="__IMG__/apple-touch-icon.png" />
		<link rel="apple-touch-icon" sizes="57x57" href="__IMG__/apple-touch-icon-57x57.png" />
		<link rel="apple-touch-icon" sizes="72x72" href="__IMG__/apple-touch-icon-72x72.png" />
		<link rel="apple-touch-icon" sizes="76x76" href="__IMG__/apple-touch-icon-76x76.png" />
		<link rel="apple-touch-icon" sizes="114x114" href="__IMG__/apple-touch-icon-114x114.png" />
		<link rel="apple-touch-icon" sizes="120x120" href="__IMG__/apple-touch-icon-120x120.png" />
		<link rel="apple-touch-icon" sizes="144x144" href="__IMG__/apple-touch-icon-144x144.png" />
		<link rel="apple-touch-icon" sizes="152x152" href="__IMG__/apple-touch-icon-152x152.png" />
		<link href="__VENDOR__/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
		<link href="__VENDOR__/skycons/css/skycons.css" rel="stylesheet" />
		<link href="__VENDOR__/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
		<link href="__VENDOR__/css/pace.preloader.css" rel="stylesheet" />
		<link rel="stylesheet" href="__CSS__/jquery-ui.css"/>
		<!-- <link href="__PLUGINS__/jquery-ui/css/jquery-ui-1.10.4.min.css" rel="stylesheet" />	 -->
		<link href="__PLUGINS__/scrollbar/css/mCustomScrollbar.css" rel="stylesheet" />
		<link href="__PLUGINS__/bootkit/css/bootkit.css" rel="stylesheet" />
		<link href="__PLUGINS__/magnific-popup/css/magnific-popup.css" rel="stylesheet" />
		<link href="__PLUGINS__/fullcalendar/css/fullcalendar.css" rel="stylesheet" />
		<link href="__PLUGINS__/jqvmap/jqvmap.css" rel="stylesheet" />
		<link href="__CSS__/jquery.mmenu.css" rel="stylesheet" />		
		<link href="__CSS__/style.css" rel="stylesheet" />
		<link href="__CSS__/add-ons.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="__CSS__/common.css">

		<script src="__PLUGINS__/modernizr/js/modernizr.js"></script>
		<script src="__VENDOR__/js/jquery-2.1.1.min.js"></script>
		<script src="__JS__/common.js"></script>
		
		<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
		<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
		<!--[if lt IE 9]>
			<script src="__JS__/html5shiv.min.js"></script>
			<script src="__JS__/respond.min.js"></script>
		<![endif]-->		
		<block name="style"></block>
	</head>
	<body>
		<div class="navbar" role="navigation">
			<div class="container-fluid container-nav">
				<ul class="nav navbar-nav navbar-actions navbar-left">
					<li class="visible-md visible-lg"><a href="#" id="main-menu-toggle"><i class="fa fa-th-large"></i></a></li>
					<li class="visible-xs visible-sm"><a href="#" id="sidebar-menu"><i class="fa fa-navicon"></i></a></li>			
				</ul>
				<div class="navbar-left">			
					<form class="search navbar-form">
						<div class="input-group input-search">
							<input type="text" class="form-control bk-radius" name="q" id="q" placeholder="搜索...">
							<span class="input-group-btn">
								<button class="btn btn-default" type="submit"><i class="fa fa-search"></i></button>
							</span>
						</div>						
					</form>
				</div>
				<div class="navbar-right">
					<div class="userbox">
						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
							<figure class="profile-picture hidden-xs">
								<img src="__IMG__/admin.jpg" class="img-circle" alt="" />
							</figure>
							<div class="profile-info">
								<span class="name">{:session('user_auth.username')}</span>
								<span class="role"><i class="fa fa-circle bk-fg-success"></i> {$role}</span>
							</div>			
							<i class="fa custom-caret"></i>
						</a>
						<div class="dropdown-menu">
							<ul class="list-unstyled">
								<li class="dropdown-menu-header bk-bg-white bk-margin-top-15">						
									<div class="progress progress-xs  progress-striped active">
										<div class="progress-bar progress-bar-primary" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%;">
											60%
										</div>
									</div>							
								</li>	
								<li>
									<a href="{:U('User/updatename')}"><i class="fa fa-user"></i> 修改昵称</a>
								</li>
								<li>
									<a href="{:U('User/updatepass')}"><i class="fa fa-wrench"></i> 修改密码</a>
								</li>
								<li>
									<a href="{:U('Public/logout')}"><i class="fa fa-power-off"></i> 退出</a>
								</li>
							</ul>
						</div>						
					</div>
				</div>
			</div>		
		</div>
		<div class="container-fluid content">
			<div class="row">
				<div class="sidebar">
					<block name="sidebar">
					<div class="sidebar-collapse">
						<div class="sidebar-header">
							<img src="__IMG__/logo.png" class="img-responsive" alt="" />
						</div>
						<div class="sidebar-menu">						
							<nav id="menu" class="nav-main" role="navigation">
								<ul class="nav nav-sidebar">
									<div class="panel-body text-center">								
										<div class="flag">
											<img src="__IMG__/flag.png" class="img-flags" alt="" />
										</div>
									</div>
									<volist name="__MENU__.main" id="menu">
									<empty name="menu.child">
									<li class="{$menu.class|default=''}">
										<a href="{$menu.url|U}">
										<i class="fa fa-laptop" aria-hidden="true"></i><span>{$menu.title}</span>
										</a>
									</li>
									<else/>
									<li class="nav-parent {$menu.class|default=''}">
										<a>
										<i class="fa fa-{$menu.logo}" aria-hidden="true"></i><span>{$menu.title}</span>
										</a>
										<ul class="nav nav-children">
										<volist name="menu.child" id="sub_menu">
											<li><a href="{$sub_menu.url|U}"><span class="text"> {$sub_menu.title}</span></a></li>
										</volist>
										</ul>
									</li>
									</empty>
            						</volist>
								</ul>
							</nav>
						</div>
					</div>
					<div class="sidebar-footer">			
					</div>
					</block>
				</div>		
				<div class="main ">
					<div class="page-header">
						<div class="pull-left">
							<ol class="breadcrumb visible-sm visible-md visible-lg">
								<li><a href="U('Index/index')"><i class="icon fa fa-home"></i>主页</a></li>
								<block name="page-header"></block>
							</ol>
						</div>
						<div class="pull-right">
							<h2>{$meta_title}</h2>
						</div>					
					</div>
					<div class="row">
						<div class="col-sm-12">
						<div id="top-alert" class="fixed alert alert-error" style="display: none;">
            			<button class="close fixed" style="margin-top: 4px;">&times;</button>
            			<div class="alert-content"></div>
        				</div>
						</div>
					</div>
					<block name="body">
					</block>
				</div>
				<div id="footer">
					<ul>
						<li>
                			<div class="copyright">感谢使用<a class="text-success" href="http://www.buyubi.cn" target="_blank"> OBD</a>管理平台</div>
                			<div class="fr">V{$Think.const.ONETHINK_VERSION}</div>
						</li>			
					</ul>
				</div>
			</div>
		</div>
		<script src="__VENDOR__/js/jquery.min.js"></script>
		<script src="__VENDOR__/js/jquery-migrate-1.2.1.min.js"></script>
		<script src="__VENDOR__/bootstrap/js/bootstrap.min.js"></script>
		<script src="__VENDOR__/skycons/js/skycons.js"></script>
		<script src="__VENDOR__/js/pace.min.js"></script>
		
		<script src="__PLUGINS__/jquery-ui/js/jquery-ui-1.10.4.min.js"></script>
		<script src="__PLUGINS__/scrollbar/js/jquery.mCustomScrollbar.concat.min.js"></script>
		<script src="__PLUGINS__/bootkit/js/bootkit.js"></script>
		<script src="__PLUGINS__/magnific-popup/js/magnific-popup.js"></script>
		<script src="__PLUGINS__/moment/js/moment.min.js"></script>	
		<script src="__PLUGINS__/fullcalendar/js/fullcalendar.js"></script>
		<script src="__PLUGINS__/flot/js/jquery.flot.min.js"></script>
		<script src="__PLUGINS__/flot/js/jquery.flot.pie.min.js"></script>
		<script src="__PLUGINS__/flot/js/jquery.flot.resize.min.js"></script>
		<script src="__PLUGINS__/flot/js/jquery.flot.stack.min.js"></script>
		<script src="__PLUGINS__/flot/js/jquery.flot.time.min.js"></script>
		<script src="__PLUGINS__/flot-tooltip/js/jquery.flot.tooltip.js"></script>
		<script src="__PLUGINS__/chart-master/js/Chart.js"></script>
		<script src="__PLUGINS__/jqvmap/jquery.vmap.js"></script>
		<script src="__PLUGINS__/jqvmap/data/jquery.vmap.sampledata.js"></script>
		<script src="__PLUGINS__/jqvmap/maps/jquery.vmap.world.js"></script>
		<script src="__PLUGINS__/sparkline/js/jquery.sparkline.min.js"></script>
			
		<script src="__JS__/jquery.mmenu.min.js"></script>
		<script src="__JS__/core.min.js"></script>
		<script src="__JS__/pages/index.js"></script>
		<block name="script">
		</block>
	</body>
</html>
